package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class TestOutputStream {
    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("d:/test.txt", true);
        String str = "2024/7/10，你好，我在学IO";
        fileOutputStream.write(str.getBytes());
        fileOutputStream.close();
    }
}
